var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var a in e) e.hasOwnProperty(a) && (t[a] = e[a]);
    })(t, e);
}, function(t, e) {
    function a() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (a.prototype = e.prototype, 
    new a());
}), a = this && this.__decorate || function(t, e, a, n) {
    var i, o = arguments.length, c = o < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, a) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, a, n); else for (var s = t.length - 1; 0 <= s; s--) (i = t[s]) && (c = (o < 3 ? i(c) : 3 < o ? i(e, a, c) : i(e, a)) || c);
    return 3 < o && c && Object.defineProperty(e, a, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("PrefabView"), s = e("Global"), c = e("AudioManager"), l = e("MyBanner"), d = e("GameManager"), u = e("NativeAdTimeView"), p = e("PetManager"), h = e("VideoRewardItemView"), f = e("MyButton"), g = e("GameConfig"), m = e("GameData"), y = e("EquipManager"), v = e("MyScrollGamesNode"), w = e("EggsManager"), b = e("NewActivityEggsView"), P = e("ActivityManager"), I = e("Daoliang"), G = e("DataManager"), _ = e("WebManager"), A = e("LoadManager"), k = e("UIManager"), M = e("AdManager"), C = e("FSVideoAdManager"), D = e("VideoAdManager"), S = cc._decorator, O = S.ccclass, R = S.property, T = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.viewname = "", t.btnname = "", t.aniamtionMap = new Map(), t.skeletonMap = new Map(), 
        t.spriteMap = new Map(), t.labelMap = new Map(), t.richTextMap = new Map(), t.myButton = null, 
        t.mask = null, t.myBanner = null, t.backBtns = [], t.backBtnLayout = null, t.scrollGames = null, 
        t.daoliang = null, t.data = null, t.target = null, t;
    }
    return i(t, e), t.prototype.onDisable = function() {
        C.default.getInstance().doShowFSVideo(this.data.tag), cc.systemEvent.off(this.data.tag, this.callback, this), 
        Array.from(this.spriteMap.values()).forEach(function(t) {
            t && t.node.destroy();
        }), e.prototype.onDisable.call(this);
    }, t.prototype.onDestroy = function() {
        var t;
        e.prototype.onDestroy.call(this), 0 < s.G.queue.length && (1 == (t = s.G.queue.shift()).type ? k.default.getInstance().loadPnl(t.name) : 2 == t.type && k.default.getInstance().loadPopPnl(t.name, t.data));
    }, t.prototype.onClickBack = function() {
        c.default.getInstance().playAudio("按钮2"), this.pushEvent("返回"), this.closePnl();
    }, t.prototype.init = function() {
        var t = this;
        switch (this.data = cc.instantiate(PD), this.data.tag) {
          case "air":
            this.loadAir();
            break;

          case "equip":
            this.loadEquip();
            break;

          case "exp":
            this.loadExp();
            break;

          case "reward":
            this.loadReward(), 0 < this.backBtns.length && this.backBtns[0].node.setPosition(cc.Vec2.ZERO);
            break;

          case "money":
            this.loadMoney();
            break;

          case "diamond":
            this.loadDiamond();
            break;

          case "piece":
            this.loadPiece();
            break;

          case "season":
            this.loadSeason();
            break;

          case "season_reward":
            this.loadSeasonReward();
            break;

          case "egg_combine":
            this.loadEggCombine();
            break;

          case "egg_reward":
            this.loadEggReward();
            break;

          case "draw_reward":
            this.loadDrawReward();
            break;

          case "video_reward":
            this.loadVideoReward();
            break;

          case "egg_get":
            this.loadEggGet();
        }
        this.loadBackBtn(), cc.tween(this.node).to(.1, {
            scale: 1.1
        }).to(.1, {
            scale: 1
        }).call(function() {
            GA.isWeChat() && "money" == t.data.tag && (t.myBanner.node.active = !0, t.myBanner.bindSelfBanner(), 
            t.myBanner.showSelfBanner());
        }).start(), this.scrollGames.tag = this.data.tag, this.scrollGames.doInit();
    }, t.prototype.start = function() {
        var e = this;
        this.init(), this.backBtns.forEach(function(t) {
            t && t.node.on("click", e.onClickBack, e);
        }), this.changeBackBtn(g.GC.backType), this.backBtnLayout && 2 == g.GC.backType && (this.backBtnLayout.y -= 40);
    }, t.prototype.callback = function() {
        var t, e, a = this;
        switch (this.data.tag) {
          case "air":
            c.default.getInstance().playAudio("特殊宝箱"), this.skeletonMap.has("default") ? (this.mask && (this.mask.active = !0), 
            this.spriteMap.has("item") && (this.spriteMap.get("item").node.active = !1), (t = this.skeletonMap.get("default")).node.active = !0, 
            t.setAnimation(0, "animation1", !1), t.setCompleteListener(function() {
                t.setAnimation(0, "animation2", !1), t.setCompleteListener(function() {
                    for (var t = k.default.getInstance().getPnl("start"), e = 0; e < g.GC.airNum; e++) t.appendEquip(function() {
                        for (var t = Math.random(), e = 0, a = 0; a < g.GC.airScaleList.length; a++) if (t < (e += g.GC.airScaleList[a])) return Math.max(m.GD.topRank + g.GC.airRankList[Math.min(a, g.GC.airRankList.length - 1)], 0);
                        return Math.max(m.GD.topRank + g.GC.airRankList[g.GC.airRankList.length - 1], 0);
                    }(), 0);
                    a.closePnl();
                });
            })) : this.closePnl();
            break;

          case "equip":
            c.default.getInstance().playAudio("高级宝箱"), this.skeletonMap.has("default") ? (this.mask && (this.mask.active = !0), 
            this.spriteMap.has("item") && (this.spriteMap.get("item").node.active = !1), (e = this.skeletonMap.get("default")).node.active = !0, 
            e.setAnimation(0, "animation1", !1), e.setCompleteListener(function() {
                e.setAnimation(0, "animation2", !1), e.setCompleteListener(function() {
                    var t = k.default.getInstance().getPnl("start");
                    a.data.checkNumParam("rank") ? t.appendEquip(a.data.data.rank, 0) : t.appendEquip(0, 0), 
                    a.closePnl();
                });
            })) : this.closePnl();
            break;

          case "exp":
            var n = k.default.getInstance().getPnl("start");
            this.data.checkObjParam("item", "rank", "number") ? n.appendEquip(this.data.data.item.rank, 0) : n.appendEquip(0, 0), 
            this.closePnl();
            break;

          case "reward":
            break;

          case "money":
            this.data.checkNumParam("num") ? (m.GD.updateNumber("money", this.data.data.num), 
            G.default.getInstance().save(), k.default.getInstance().barViews.forEach(function(t) {
                return t.refresh();
            }), k.default.getInstance().showToast({
                money: this.data.data.num
            }, function() {
                a.closePnl();
            })) : this.closePnl();
            break;

          case "diamond":
            this.data.checkNumParam("num") ? (m.GD.diamondCount < g.GC.maxDiamondCount && (P.ActivityManager.getInstance().checkActivity(P.ActivityType.DIAMOND) && (this.data.data.num = this.data.data.num * g.GC.diamondScale), 
            m.GD.diamondCount++), m.GD.updateNumber("diamond", this.data.data.num), G.default.getInstance().save(), 
            k.default.getInstance().barViews.forEach(function(t) {
                return t.refresh();
            }), k.default.getInstance().showToast({
                diamond: this.data.data.num
            }, function() {
                a.closePnl();
            })) : this.closePnl();
            break;

          case "piece":
            this.data.checkNumParam("num") ? (m.GD.pieceCount < g.GC.maxPieceCount && (P.ActivityManager.getInstance().checkActivity(P.ActivityType.PIECE) && (this.data.data.num = this.data.data.num * g.GC.pieceScale), 
            m.GD.pieceCount++), m.GD.updateNumber("piece", this.data.data.num), G.default.getInstance().save(), 
            k.default.getInstance().barViews.forEach(function(t) {
                return t.refresh();
            }), k.default.getInstance().showToast({
                piece: this.data.data.num
            }, function() {
                a.closePnl();
            })) : this.closePnl();
            break;

          case "egg_get":
            this.target ? this.target.emit("egg_get") : this.closePnl();
        }
    }, t.prototype.loadTitleLabel = function(t) {
        this.loadLabel(t, cc.v2(0, 220), "title").then(function(t) {
            t.fontSize = 25;
        });
    }, t.prototype.loadTitle = function(t, e, a, n) {
        return void 0 === e && (e = cc.v2(0, 290)), void 0 === n && (n = this.node), this.loadSprite("image/ui/" + t + "@2x", e, a = void 0 === a ? "title" : a, n);
    }, t.prototype.loadLight = function(t, e, a, n, i) {
        return void 0 === e && (e = cc.v2(0, 100)), void 0 === a && (a = 60), void 0 === i && (i = this.node), 
        this.loadSprite("image/ui/" + t + "@2x", e, n = void 0 === n ? "light" : n, i).then(function(t) {
            cc.tween(t.node).repeatForever(cc.tween().by(2, {
                angle: a
            })).start();
        });
    }, t.prototype.loadItem = function(t, e, a, n) {
        return void 0 === e && (e = cc.v2(0, 100)), void 0 === n && (n = this.node), this.loadSprite("image/" + t, e, a = void 0 === a ? "item" : a, n);
    }, t.prototype.loadAir = function() {
        var t;
        this.viewname = "空投装备箱", this.btnname = "领取", this.loadTitle("空投装备箱"), this.loadTitleLabel("空投箱里有8样武器"), 
        this.loadLight("光圈"), this.loadItem("ui/空投装备箱"), this.loadSkeleton("skeleton/空投装备箱/skeleton", cc.v2(21, 95)).then(function(t) {
            t.node.active = !1;
        }), this.loadBtn("领 取"), this.daoliang.node.active = !0, -1 == w.default.getInstance().checkEggPerson(26) && P.ActivityManager.getInstance().checkActivity(P.ActivityType.SISTH) && ((t = new cc.Node()).parent = this.node, 
        t.addComponent(b.default).init({
            id: 26,
            type: b.NewActivityEggType.CLICK,
            num: 10,
            options: {
                pos: cc.v2(0, 125),
                size: cc.size(200, 200)
            }
        }));
    }, t.prototype.loadEquip = function() {
        this.viewname = "高级装备箱", this.btnname = "翻倍", this.loadTitle("高级装备箱"), this.loadTitleLabel("里面肯定有很好的装备"), 
        this.loadLight("光圈"), this.loadItem("ui/高级装备箱"), this.loadSkeleton("skeleton/高级装备箱/skeleton", cc.v2(20, 100)).then(function(t) {
            t.node.active = !1;
        }), this.loadBtn("翻 倍"), this.loadSprite("image/ui/X2@2x", cc.v2(115, 35), "double", this.myButton.node), 
        this.daoliang.node.active = !0;
    }, t.prototype.loadExp = function() {
        var e = this;
        this.viewname = "额外赠送", this.btnname = "领取", this.loadTitle("额外赠送"), this.loadLight("光圈亮", cc.v2(0, 125)), 
        this.data.checkObjParam("item", "rank", "number") ? (this.loadSprite("image/ui/等级@2x", cc.v2(65, 200), "rank").then(function(t) {
            t.node.scale = 1.3, e.loadLabel((e.data.data.item.rank + 1).toString(), cc.v2(0, 0), "rank", t.node).then(function(t) {
                t.fontSize = 20, t.lineHeight = 25;
                t = t.addComponent(cc.LabelOutline);
                t.color = cc.Color.BLACK, t.width = 2;
            });
        }), this.loadLabel(s.G.gunModelList[s.G.getIdxByRank(this.data.data.item.rank)].m, cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 25;
        }), this.loadItem("arm2/" + s.G.getIdxByRank(this.data.data.item.rank), cc.v2(0, 125))) : (this.loadSprite("image/ui/等级@2x", cc.v2(65, 200), "rank").then(function(t) {
            t.node.scale = 1.3, e.loadLabel("1", cc.v2(0, 0), "rank", t.node).then(function(t) {
                t.fontSize = 20, t.lineHeight = 25;
                t = t.addComponent(cc.LabelOutline);
                t.color = cc.Color.BLACK, t.width = 2;
            });
        }), this.loadLabel("手枪", cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 25;
        }), this.loadItem("arm2/0", cc.v2(0, 125))), this.loadBtn("领 取"), this.daoliang.node.active = !0;
    }, t.prototype.loadReward = function() {
        var t, e = this;
        if (this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), this.loadLight("光圈"), 
        this.data.checkNumParam("type")) switch (this.data.checkParam("callback", "function") ? this.data.data.callback() : this.data.data.type == s.RewardType.DRAGON ? this.scheduleOnce(this.closePnl, this.data.checkNumParam("time") ? this.data.data.time : 6) : this.scheduleOnce(this.closePnl, this.data.checkNumParam("time") ? this.data.data.time : 3), 
        this.data.data.type) {
          case s.RewardType.DIAMOND:
            c.default.getInstance().playAudio("彩蛋兑换钻石"), this.loadItem("ui/钻石奖励"), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
                t.fontSize = 25;
            });
            break;

          case s.RewardType.MONEY:
            c.default.getInstance().playAudio("彩蛋兑换钻石"), this.loadItem("ui/金币奖励"), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 0), "info").then(function(t) {
                t.fontSize = 25;
            });
            break;

          case s.RewardType.SKIN:
            this.data.checkNumParam("idx") && (this.loadTitleLabel(s.G.getPersonModel(this.data.data.idx).m), 
            this.loadSprite("texture/rare/sign/" + s.G.getPersonModel(this.data.data.idx).s, cc.v2(-90, 230), "sign", this.node).then(function(t) {
                t.node.scale = .7;
            }), 15 == this.data.data.idx ? c.default.getInstance().playAudio("彩蛋兑换皮肤") : c.default.getInstance().playAudio("获得珍贵奖励"), 
            this.loadSkeleton("skin/" + this.data.data.idx + "/skeleton", cc.v2(0, 0), "default").then(function(t) {
                t.node.scale = .8;
            }));
            break;

          case s.RewardType.PET:
            c.default.getInstance().playAudio("彩蛋兑换枪和狗"), this.data.checkNumParam("idx") && this.loadSkeleton("skin/p" + this.data.data.idx + "/dog", cc.v2(0, 15), "default").then(function(t) {
                t.setAnimation(0, "move2", !0);
            });
            break;

          case s.RewardType.ARM:
            c.default.getInstance().playAudio("获得珍贵奖励"), this.data.checkNumParam("idx") && (3e3 <= this.data.data.idx ? (this.loadTitleLabel(s.G.getOlympicGunModel(this.data.data.idx).m), 
            this.loadSprite("texture/rare/sign/5", cc.v2(-90, 230), "sign", this.node).then(function(t) {
                t.node.scale = .7;
            }), this.loadSprite("texture/armOlympic/" + this.data.data.idx, cc.v2(0, 100), "item", this.node)) : 2e3 <= this.data.data.idx ? this.loadItem("arm_draw_2/" + s.G.getDrawIdx(this.data.data.idx)) : 1e3 <= this.data.data.idx ? this.loadItem("arm3/" + s.G.getEggIdx(this.data.data.idx)).then(function(t) {
                t.node.setContentSize(240, 240);
            }) : this.loadItem("arm2/" + this.data.data.idx));
            break;

          case s.RewardType.PIECE:
            c.default.getInstance().playAudio("彩蛋兑换钻石"), this.loadItem("ui/碎片@2x").then(function(t) {
                t.node.scale = .8;
            }), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
                t.fontSize = 25;
            });
            break;

          case s.RewardType.DRAGON:
            c.default.getInstance().playAudio("宠物孵化动画音效"), this.data.checkNumParam("idx") && (this.backBtnLayout.parent.active = !1, 
            this.loadSkeleton("skeleton/机械暴龙孵化动作/jixiebaolongfuhua", cc.v2(0, 15), "default").then(function(t) {
                t.node.scale = .8, t.setAnimation(0, "fuhua", !1), t.setCompleteListener(function() {
                    t.setCompleteListener(null), e.backBtnLayout.parent.active = !0, e.loadSkeleton("skin/p" + e.data.data.idx + "/jixiebaolong", cc.v2(0, 15), "default").then(function(t) {
                        t.setAnimation(0, "move2", !0);
                    });
                });
            }));
            break;

          case s.RewardType.ELF:
            c.default.getInstance().playAudio("彩蛋兑换枪和狗"), this.data.checkNumParam("idx") && this.loadSkeleton("skin/p" + this.data.data.idx + "/xiaojingling", cc.v2(0, 15), "default").then(function(t) {
                t.setAnimation(0, "move2", !0);
            });
            break;

          case s.RewardType.STONE:
            c.default.getInstance().playAudio("彩蛋兑换钻石"), this.loadItem("draw/进化石big"), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 0), "info").then(function(t) {
                t.fontSize = 25;
            });
            break;

          case s.RewardType.ANGLE:
            c.default.getInstance().playAudio("彩蛋兑换枪和狗"), this.data.checkNumParam("idx") && (this.loadSkeleton("skin/p" + this.data.data.idx + "/skeleton", cc.v2(0, 15), "default").then(function(t) {
                t.setAnimation(0, "move2", !0);
            }), (t = k.default.getInstance().getPnl("start")) && t.petView.initPet());
            break;

          case s.RewardType.EQUIP:
            c.default.getInstance().playAudio("彩蛋兑换枪和狗"), this.data.checkNumParam("idx") && (t = y.default.getInstance().getConfig(this.data.data.idx), 
            this.loadItem("equip/" + t.pre + "1" + t.suf).then(function(t) {
                t.node.scale = 2;
            }), this.loadLabel(t.name, cc.v2(0, 20), "info").then(function(t) {
                t.fontSize = 25;
            }));
            break;

          default:
            this.loadItem("ui/钻石奖励"), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
                t.fontSize = 25;
            });
        } else this.closePnl();
    }, t.prototype.loadMoney = function() {
        this.viewname = "金币不足", this.btnname = "领取", this.loadTitle("金币不足");
        var t, e = D.default.getInstance().getTotal(this.data.tag);
        null != e && 0 < e && null != (t = D.default.getInstance().getCount(this.data.tag)) && -1 < t && t <= e ? this.loadRichText("每日领取 <color=#ffcc00>" + (e - t) + "/" + e + "</c> 次", cc.v2(0, 250), "标题").then(function(t) {
            t.fontSize = 25;
        }) : this.loadTitleLabel("领取你的金币"), this.loadLight("光圈", cc.v2(0, 125)), this.loadItem("ui/金币奖励", cc.v2(0, 125)), 
        this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 35;
        }), this.loadBtn("领 取"), this.daoliang.node.active = !0;
    }, t.prototype.loadDiamond = function() {
        var n, i = this;
        this.viewname = "钻石不足", this.btnname = "领取", this.loadTitle("钻石不足"), m.GD.diamondCount < g.GC.maxDiamondCount && P.ActivityManager.getInstance().checkActivity(P.ActivityType.DIAMOND) ? (n = P.ActivityManager.getInstance().activityConfigMap.get(P.ActivityType.DIAMOND), 
        this.loadSprite("image/ui/钻石活动牌@2x", cc.v2(350, cc.winSize.height / 2 - 119), "活动", this.node.parent).then(function(t) {
            var e = new RegExp(new Date().getFullYear() + "-", "g"), a = new RegExp(new Date().getFullYear() + 1 + "-", "g");
            i.loadRichText("<color=#3e497b>" + n.time.replace(e, "").replace(a, "") + "</c>", cc.v2(0, -70), "活动时间字", t.node).then(function(t) {
                t.fontSize = 28;
            });
        }), this.loadLabel("已领：(" + GA.formatNumber(this.data.data.num * g.GC.diamondScale * m.GD.diamondCount) + "/" + GA.formatNumber(this.data.data.num * g.GC.diamondScale * g.GC.maxDiamondCount) + ")", cc.v2(0, -200), "已领碎片字").then(function(t) {
            t.fontSize = 35;
        }), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num * g.GC.diamondScale), cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 35;
        })) : this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 35;
        });
        var t, e = D.default.getInstance().getTotal(this.data.tag);
        null != e && 0 < e && null != (t = D.default.getInstance().getCount(this.data.tag)) && -1 < t && t <= e ? this.loadRichText("每日领取 <color=#ffcc00>" + (e - t) + "/" + e + "</c> 次", cc.v2(0, 250), "标题").then(function(t) {
            t.fontSize = 25;
        }) : this.loadTitleLabel("领取你的钻石"), this.loadLight("光圈", cc.v2(0, 125)), this.loadItem("ui/钻石奖励", cc.v2(0, 125)), 
        this.loadBtn("领 取"), this.daoliang.node.active = !0, -1 == w.default.getInstance().checkEggPerson(21) && P.ActivityManager.getInstance().checkActivity(P.ActivityType.FIRST) && ((e = new cc.Node()).parent = this.node, 
        e.addComponent(b.default).init({
            id: 21,
            type: b.NewActivityEggType.CLICK,
            num: 10,
            options: {
                pos: cc.v2(0, 125),
                size: cc.size(200, 200)
            }
        }));
    }, t.prototype.loadPiece = function() {
        var n, t, e, i = this;
        this.viewname = "碎片不足", this.btnname = "领取", this.loadTitle("碎片不足"), this.loadRichText("每日领取 <color=#ffcc00>" + (g.GC.maxPieceCount - m.GD.pieceCount) + "/" + g.GC.maxPieceCount + "</c> 次", cc.v2(0, 250), "标题").then(function(t) {
            t.fontSize = 25;
        }), m.GD.pieceCount < g.GC.maxPieceCount && P.ActivityManager.getInstance().checkActivity(P.ActivityType.PIECE) ? (n = P.ActivityManager.getInstance().activityConfigMap.get(P.ActivityType.PIECE), 
        this.loadSprite("image/ui/碎片活动牌@2x", cc.v2(350, cc.winSize.height / 2 - 119), "活动", this.node.parent).then(function(t) {
            var e = new RegExp(new Date().getFullYear() + "-", "g"), a = new RegExp(new Date().getFullYear() + 1 + "-", "g");
            i.loadRichText("<color=#3e497b>" + n.time.replace(e, "").replace(a, "") + "</c>", cc.v2(0, -70), "活动时间字", t.node).then(function(t) {
                t.fontSize = 28;
            });
        }), this.loadLabel("已领：(" + GA.formatNumber(this.data.data.num * g.GC.pieceScale * m.GD.pieceCount) + "/" + GA.formatNumber(this.data.data.num * g.GC.pieceScale * g.GC.maxPieceCount) + ")", cc.v2(0, -200), "已领碎片字").then(function(t) {
            t.fontSize = 35;
        }), this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num * g.GC.pieceScale), cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 35;
        })) : this.data.checkNumParam("num") && this.loadLabel(GA.formatNumber(this.data.data.num), cc.v2(0, 20), "info").then(function(t) {
            t.fontSize = 35;
        }), this.loadLight("光圈", cc.v2(0, 125)), this.loadItem("ui/碎片@2x", cc.v2(0, 125)), 
        D.default.getInstance().check(this.data.tag) ? this.loadBtn("领 取") : (this.myButton.node.active = !0, 
        this.myButton.init(this.data.data.tag, "", f.BtnBgType.GRAY, f.BtnIconType.NONE), 
        (t = (e = new cc.Node("timeLabel").addComponent(cc.Label)).node.addComponent(u.default)).tag = this.data.tag, 
        t.title = "下次领取：", t.timeLabel = e, t.callback = function() {
            i.loadBtn("领 取");
        }, e.node.setPosition(cc.v2(0, -10)), e.node.parent = this.myButton.node, e.fontSize = 25), 
        this.daoliang.node.active = !0, -1 == w.default.getInstance().checkEggPerson(24) && P.ActivityManager.getInstance().checkActivity(P.ActivityType.FOURTH) && ((e = new cc.Node()).parent = this.node, 
        (t = e.addComponent(b.default)).init({
            id: 24,
            type: b.NewActivityEggType.DEALY,
            num: 4,
            options: {
                pos: cc.v2(0, 125),
                size: cc.size(200, 200)
            }
        }));
    }, t.prototype.loadSeason = function() {
        var n = this;
        this.loadTitle("赛季开启"), this.loadTitleLabel("上赛季最终段位"), this.backBtnLayout.parent.active = !1;
        var t = s.G.getRank(m.GD.lastLevel), i = s.G.getRank(m.GD.level), e = null, a = null, o = new cc.Node();
        o.parent = this.node, o.scale = .8, o.zIndex = 1, Promise.all([ this.loadSprite("image/ui/光圈大@2x", cc.v2(0, 60), "season_light"), this.loadSprite("image/level/" + t.r, cc.v2(0, 220), "sprite", o).then(function(t) {
            t.node.opacity = 0, e = t;
        }), this.loadSprite("image/label/" + t.r, cc.v2(0, -140), "label", o).then(function(t) {
            t.node.opacity = 0, a = t;
        }) ]).then(function() {
            c.default.getInstance().playAudio("段位光出现时"), e && cc.tween(e.node).parallel(cc.tween().to(1, {
                opacity: 255
            }), cc.tween().by(1, {
                position: cc.v2(0, -100)
            })).start(), a && cc.tween(a.node).parallel(cc.tween().to(1, {
                opacity: 255
            }), cc.tween().by(1, {
                position: cc.v2(0, 100)
            })).start();
            var t = o.addComponent(cc.Animation);
            return Promise.all([ n.loadAnimation("animation/test", t), n.loadSprite("image/level/" + i.r, cc.v2(0, 120), "sprite2", o).then(function(t) {
                t.node.active = !1;
            }), n.loadSprite("image/ui/光圈升@2x", cc.v2(0, 120), "baiguang", o).then(function(t) {
                t.node.active = !1;
            }), n.loadSprite("", cc.v2(10, 60), "baiguang2", o).then(function(t) {
                t.node.scale = 5;
            }) ]);
        }).then(function(t) {
            var a;
            t[0] instanceof cc.Animation ? (a = t[0], n.aniamtionMap.set("test", t[0]), a.on("up", function() {
                n.loadSprite("image/level/" + i.r, cc.v2(0, 120), "sprite", o).then(function(t) {
                    t.node.scale = 1, t.node.active = !0, t.node.opacity = 255;
                }), n.loadSprite("image/label/" + i.r, cc.v2(0, -40), "label", o);
            }), a.on("finished", function() {
                n.scheduleOnce(function() {
                    e && (c.default.getInstance().playAudio("段位飞到左上角时"), k.default.getInstance().getPnl("start").initSeasonAction(e.node)), 
                    n.closePnl();
                }, 2);
            }), n.loadSprite("image/ui/开启新赛季@2x", cc.v2(0, -150), "season_btn").then(function(t) {
                var e = t.addComponent(cc.Button);
                e.transition = cc.Button.Transition.SCALE, e.zoomScale = 1.1, t.node.on("click", function() {
                    c.default.getInstance().playAudio("晋级段位"), c.default.getInstance().playAudio("段位旋转"), 
                    t.node.active = !1, m.GD.isOpen = 1, m.GD.seasonOpenTime = m.GD.seasonLastTime, 
                    G.default.getInstance().save(), a.play("test"), a.scheduleOnce(function() {
                        c.default.getInstance().playAudio("得星");
                        var a = new cc.Node().addComponent(cc.ParticleSystem);
                        Promise.all([ new Promise(function(e, t) {
                            A.default.getInstance().loadRes({
                                url: "particle/lihua-piaoluo",
                                type: cc.ParticleAsset
                            }).then(function(t) {
                                a.file = t, e();
                            }).catch(function() {
                                t();
                            });
                        }), new Promise(function(e, t) {
                            A.default.getInstance().loadRes({
                                url: "particle/lihua-piaoluo",
                                type: cc.SpriteFrame
                            }).then(function(t) {
                                a.spriteFrame = t, e();
                            }).catch(function() {
                                t();
                            });
                        }) ]).then(function() {
                            a.node.parent = n.node, a.node.zIndex = 2, a.node.y = cc.winSize.height / 2, a.autoRemoveOnFinish = !0;
                        }), n.loadSprite("image/level/" + i.r, cc.v2(0, 120), "sprite", o).then(function(t) {
                            t.node.scale = 1, t.node.active = !0, t.node.opacity = 255;
                        }), n.loadSprite("image/label/" + i.r, cc.v2(0, -40), "label", o);
                    }, 1.8667);
                }, n), t.node.opacity = 0, cc.tween(t.node).delay(1).to(.5, {
                    opacity: 255
                }).start();
            })) : n.closePnl();
        });
    }, t.prototype.loadSeasonReward = function() {
        var a = this, t = s.G.getRank(m.GD.lastLevel);
        this.backBtnLayout.parent.active = !1, PD.tag = "reward";
        for (var e = 100, n = 0; n < g.GC.seasonAccountConfig.length; n++) {
            var i = g.GC.seasonAccountConfig[n];
            if (t.r == i.r) {
                e = i.d;
                break;
            }
        }
        PD.data = {
            type: s.RewardType.DIAMOND,
            num: e,
            callback: function() {
                a.loadSprite("image/ui/点击继续@2x", cc.v2(0, -110), "btn").then(function(t) {
                    var e = t.addComponent(cc.Button);
                    e.transition = cc.Button.Transition.SCALE, e.zoomScale = 1.1, t.node.on("click", function() {
                        c.default.getInstance().playAudio("按钮2"), _.default.getInstance().sentLog("点击领取赛季奖励按键"), 
                        d.default.getInstance().matchType == d.MatchType.三对三 ? d.default.getInstance().battleGame() : d.default.getInstance().matchGame();
                    }, a);
                });
            }
        }, m.GD.updateNumber("diamond", e), m.GD.isReward = 1, m.GD.seasonRewardTime = m.GD.seasonLastTime, 
        G.default.getInstance().save(), this.loadSkeleton("skeleton/宝箱出现/skeleton").then(function(t) {
            c.default.getInstance().playAudio("宝箱出现"), t.setAnimation(0, "animation", !1), t.setCompleteListener(function() {
                t.setCompleteListener(null), a.loadTitle("赛季奖励"), a.loadTitleLabel("赛季奖励"), a.loadSkeleton("skeleton/宝箱打开/skeleton").then(function(t) {
                    c.default.getInstance().playAudio("宝箱打开"), t.setAnimation(0, "animation", !1), t.setCompleteListener(function() {
                        t.setCompleteListener(null), a.init();
                    });
                });
            });
        });
    }, t.prototype.loadEggCombine = function() {
        var e = this;
        this.viewname = "彩蛋合成", this.btnname = "领取", this.loadSprite("image/eggs/" + s.G.eggGunModelList[s.G.getEggIdx(m.GD.gunIdx)].m + "字@2x", cc.v2(0, 290), "title"), 
        this.loadSkeleton("skeleton/合成" + s.G.eggGunModelList[s.G.getEggIdx(m.GD.gunIdx)].m + "/skeleton", cc.v2(0, 125), "default").then(function(t) {
            t.node.zIndex = 1, t.setAnimation(0, "animation", !1), t.setEventListener(function(t, e) {
                "hecheng1" == e.data.name ? c.default.getInstance().playAudio("合成音效1") : "hecheng2" == e.data.name && c.default.getInstance().playAudio("合成音效2");
            }), t.setCompleteListener(function() {
                t.setCompleteListener(null), e.loadLight("光圈黄", cc.v2(0, 125), 10, "light1"), e.loadLight("光圈黄", cc.v2(0, 125), -15, "light2");
            });
        });
    }, t.prototype.loadEggReward = function() {
        var t, a = this;
        if (this.data.checkNumParam("type")) switch (this.data.data.type) {
          case s.RewardType.SKIN:
            this.data.checkNumParam("idx") && (this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), 
            this.loadSprite("image/ui/光圈大@2x", cc.v2(0, 50), "season_light"), this.backBtnLayout.parent.active = !1, 
            this.loadSprite("image/ui/点击继续@2x", cc.v2(0, -200), "btn").then(function(t) {
                var e = t.node.addComponent(cc.Button);
                e.transition = cc.Button.Transition.SCALE, e.zoomScale = 1.1, t.node.on("click", function() {
                    c.default.getInstance().playAudio("按钮2"), a.pushEvent("返回"), k.default.getInstance().hideAllPnl(), 
                    k.default.getInstance().showPnl("start");
                }, a);
            }), 0 < (t = s.G.eggPersonModelList.filter(function(t) {
                return t.id == a.data.data.idx;
            })).length && this.loadLabel(t[0].j, cc.v2(0, -110), "default").then(function(t) {
                t.fontSize = 25;
            }), this.loadSkeleton("skin/" + (this.data.data.idx + 100) + "/skeleton", cc.v2(0, -55), "default").then(function(t) {
                t.setAnimation(0, "animation2", !0), t.node.scale = 1;
            }));
            break;

          case s.RewardType.PET:
            this.data.checkNumParam("idx") && (this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), 
            this.loadLight("光圈"), this.backBtnLayout.parent.active = !1, this.loadSkeleton("skin/p" + this.data.data.idx + "/dog", cc.v2(0, 15), "default").then(function(t) {
                t.setAnimation(0, "move3", !1), t.setEventListener(function(t, e) {
                    "heti" == e.data.name ? c.default.getInstance().playAudio("狗组合部件音效") : "guangquan" == e.data.name && (c.default.getInstance().playAudio("狗组合部件音效"), 
                    c.default.getInstance().playAudio("光圈出现音效"));
                }), t.setCompleteListener(function() {
                    t.setEventListener(null), t.setCompleteListener(null), t.setAnimation(0, "move2", !0), 
                    a.backBtnLayout.parent.active = !0;
                });
            }));
            break;

          case s.RewardType.ARM:
            this.data.checkNumParam("idx") && (this.loadTitle("彩蛋武器"), this.loadTitleLabel("领取你的奖励"), 
            this.loadLight("光圈"), this.loadItem("arm3/" + s.G.getEggIdx(this.data.data.idx)).then(function(t) {
                a.data.checkNumParam("scale") && (t.node.scale = a.data.data.scale);
            }));
            break;

          case s.RewardType.DRAGON:
            this.data.checkNumParam("idx") && (c.default.getInstance().playAudio("宠物孵化动画音效"), 
            this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), this.loadLight("光圈"), this.backBtnLayout.parent.active = !1, 
            this.loadSkeleton("skin/p" + this.data.data.idx + "/jixiebaolong", cc.v2(0, 15), "default").then(function(t) {
                t.node.scale = .7, t.setAnimation(0, "move4", !1), t.setCompleteListener(function() {
                    t.setCompleteListener(null), t.setAnimation(0, "move2", !0), a.backBtnLayout.parent.active = !0;
                });
            }));
        }
    }, t.prototype.loadDrawReward = function() {
        var e = this;
        this.backBtnLayout.active = !1, c.default.getInstance().playAudio("彩蛋兑换宝箱"), this.loadSkeleton("skeleton/道具宝箱/skeleton", cc.v2(0, -100), "skeleton", cc.Canvas.instance.node).then(function(t) {
            t.node.scale = 2, t.setAnimation(0, "animation", !1), t.setCompleteListener(function() {
                t.setAnimation(0, "animation4", !1), t.setCompleteListener(function() {
                    t.setAnimation(0, "animation3", !1), t.setCompleteListener(function() {
                        t.setCompleteListener(null), t.node.destroy(), e.backBtnLayout.active = !0;
                        var a = new cc.Node().addComponent(cc.ParticleSystem);
                        c.default.getInstance().playAudio("得星"), Promise.all([ new Promise(function(e, t) {
                            A.default.getInstance().loadRes({
                                url: "particle/xx22(1)",
                                type: cc.ParticleAsset
                            }).then(function(t) {
                                a.file = t, e();
                            }).catch(function() {
                                t();
                            });
                        }), new Promise(function(e, t) {
                            A.default.getInstance().loadRes({
                                url: "particle/xx22",
                                type: cc.SpriteFrame
                            }).then(function(t) {
                                a.spriteFrame = t, e();
                            }).catch(function() {
                                t();
                            });
                        }) ]).then(function() {
                            a.node.parent = e.node, a.node.y = 100, a.node.scale = 1.5, a.playOnLoad = !0, a.autoRemoveOnFinish = !0;
                        }), e.loadReward(), cc.tween(e.node).to(.1, {
                            scale: 1.1
                        }).to(.1, {
                            scale: 1
                        }).start();
                    });
                });
            });
        });
    }, t.prototype.loadVideoReward = function() {
        var e, a = this, n = g.GC.videoLikeList.filter(function(t) {
            return t.openid == GA.Info.openId;
        }).sort(function(t, e) {
            return t.rank - e.rank;
        }), i = [ {
            type: 0,
            num: 99
        } ];
        0 < n.length && (e = 0, g.GC.videoRewardConfig.forEach(function(t) {
            n[0].rank >= t.rank && (e = t.mode);
        }), e < g.GC.videoModeConfig.length && (i = g.GC.videoModeConfig[e])), i && _.default.getInstance().getVideoReward({
            success: function() {
                var a = k.default.getInstance().getPnl("start");
                i.forEach(function(t) {
                    switch (t.type) {
                      case s.RewardType.DIAMOND:
                        m.GD.updateNumber("diamond", t.num);
                        break;

                      case s.RewardType.MONEY:
                        m.GD.updateNumber("money", t.num);
                        break;

                      case s.RewardType.SKIN:
                        null == t.idx || isNaN(t.idx) || (m.GD.hasSkin(t.idx) || m.GD.addSkin(t.idx), m.GD.personIdx < t.idx && (m.GD.personIdx = t.idx, 
                        a.personView.init()));
                        break;

                      case s.RewardType.PET:
                        p.default.getInstance().isHas(0) || (p.default.getInstance().getRealData(0).has = 1, 
                        a.petView.initPet());
                        break;

                      case s.RewardType.ARM:
                        var e;
                        null == t.idx || isNaN(t.idx) || (0 < (e = a.boxs.filter(function(t) {
                            return t.isEmpty();
                        })).length ? (a.appendItem(t.idx, e[0]), a.updateMatrix()) : a.appendEquip(t.idx), 
                        2001 == t.idx && 3 != m.GD.personIdx && 9 != m.GD.personIdx || (m.GD.gunIdx = t.idx), 
                        1008 == t.idx && -17 != m.GD.personIdx || (m.GD.gunIdx = t.idx));
                        break;

                      case s.RewardType.PIECE:
                        m.GD.updateNumber("piece", t.num);
                        break;

                      case s.RewardType.DRAGON:
                        p.default.getInstance().isHas(1) || (p.default.getInstance().getRealData(1).has = 1, 
                        cc.systemEvent.emit("hatch_reward", !1));
                    }
                }), s.G.videoReward = 0, G.default.getInstance().save();
            }
        }), this.backBtnLayout.parent.active = !1, this.loadTitle("最热视频榜", cc.v2(0, 165)).then(function(t) {
            t.node.zIndex = 2;
        }), this.loadSprite("image/ui/光圈(最热视频)@2x", cc.v2(0, 225), "light").then(function(t) {
            t.node.zIndex = 1;
        }), this.loadSprite("image/ui/光圈星(最热视频)@2x", cc.v2(0, 260), "star"), this.loadSprite("image/ui/最热视频榜底@2x", cc.v2(0, 20), "bg").then(function(t) {
            var e = new cc.Node();
            e.parent = t.node;
            var n = e.addComponent(cc.Layout);
            n.type = cc.Layout.Type.HORIZONTAL, n.resizeMode = cc.Layout.ResizeMode.CONTAINER, 
            n.spacingX = 20, A.default.getInstance().loadRes({
                url: "prefab/videoRewardItem",
                type: cc.Prefab
            }).then(function(a) {
                a instanceof cc.Prefab && i && i.forEach(function(t) {
                    var e = cc.instantiate(a);
                    e.parent = n.node, e.getComponent(h.default).init(t);
                });
            });
        }), this.loadSprite("image/ui/点击继续@2x", cc.v2(0, -200), "btn").then(function(t) {
            var e = t.node.addComponent(cc.Button);
            e.transition = cc.Button.Transition.SCALE, e.zoomScale = 1.1, t.node.on("click", function() {
                c.default.getInstance().playAudio("按钮2"), a.pushEvent("返回"), a.hidePnl();
            }, a);
        });
    }, t.prototype.loadEggGet = function() {
        var t, e = this;
        if (this.data.checkNumParam("type")) switch (this.data.data.type) {
          case s.RewardType.SKIN:
            this.data.checkNumParam("idx") && (this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), 
            this.loadSprite("image/ui/光圈大@2x", cc.v2(0, 50), "season_light"), this.backBtnLayout.y -= 80, 
            2 == g.GC.backType ? (this.backBtns[2].node.scale = 0, cc.tween(this.backBtns[2].node).delay(2).call(function() {
                e.backBtns[2].node.scale = 1;
            }).start()) : 0 == g.GC.backType && (this.backBtns[0].node.y -= 80, this.backBtns[0].node.scale = 0, 
            cc.tween(this.backBtns[0].node).delay(2).call(function() {
                e.backBtns[0].node.scale = 1;
            }).start()), 0 < (t = s.G.eggPersonModelList.filter(function(t) {
                return t.id == e.data.data.idx;
            })).length && this.loadLabel(t[0].j, cc.v2(0, -110), "default").then(function(t) {
                t.fontSize = 25;
            }), this.loadBtn("领 取"), this.loadSkeleton("skin/" + (this.data.data.idx + 100) + "/skeleton", cc.v2(0, -55), "default").then(function(t) {
                18 == e.data.data.idx || 19 == e.data.data.idx ? (t.setAnimation(0, "animation6", !1), 
                t.setCompleteListener(function() {
                    t.setCompleteListener(null), t.setAnimation(0, "animation2", !0);
                })) : (29 == e.data.data.idx && (c.default.getInstance().playAudio("彩蛋皮肤泽塔凹凸曼"), 
                e.loadSkeleton("skeleton/皮肤泽塔凹凸曼/skeleton", cc.v2(0, -55), "light").then(function(t) {
                    t.setAnimation(0, "guang", !1);
                })), t.setAnimation(0, "animation2", !0)), t.node.scale = 1;
            }));
            break;

          case s.RewardType.ARM:
            this.data.checkNumParam("idx") && (this.loadTitle("恭喜获得"), this.loadTitleLabel("领取你的奖励"), 
            this.loadSprite("image/ui/光圈大@2x", cc.v2(0, 50), "season_light"), this.backBtnLayout.y -= 80, 
            2 == g.GC.backType ? (this.backBtns[2].node.scale = 0, cc.tween(this.backBtns[2].node).delay(2).call(function() {
                e.backBtns[2].node.scale = 1;
            }).start()) : 0 == g.GC.backType && (this.backBtns[0].node.y -= 80, this.backBtns[0].node.scale = 0, 
            cc.tween(this.backBtns[0].node).delay(2).call(function() {
                e.backBtns[0].node.scale = 1;
            }).start()), this.loadBtn("领 取"), 3e3 <= this.data.data.idx ? this.loadSprite("image/texture/armOlympic" + this.data.data.idx, cc.v2(0, 100), "item", this.node) : 2e3 <= this.data.data.idx ? this.loadItem("arm_draw_2/" + s.G.getDrawIdx(this.data.data.idx)) : 1e3 <= this.data.data.idx ? this.loadItem("arm3/" + s.G.getEggIdx(this.data.data.idx)).then(function(t) {
                t.node.setContentSize(240, 240);
            }) : this.loadItem("arm2/" + this.data.data.idx));
        }
    }, t.prototype.loadSprite = function(n, i, o, c) {
        var s = this;
        return void 0 === i && (i = cc.Vec2.ZERO), void 0 === c && (c = this.node), new Promise(function(t, e) {
            var a = s.spriteMap && s.spriteMap.has(o) ? s.spriteMap.get(o) : new cc.Node(o).addComponent(cc.Sprite);
            a.node.parent = c, a.node.setPosition(i), n ? A.default.getInstance().loadSpriteFrame({
                url: n,
                sprite: a,
                success: function() {
                    s.spriteMap && !s.spriteMap.has(o) && s.spriteMap.set(o, a), t(a);
                },
                fail: function() {
                    e(n);
                }
            }) : (s.spriteMap && !s.spriteMap.has(o) && s.spriteMap.set(o, a), t(a));
        });
    }, t.prototype.loadLabel = function(a, n, i, o) {
        var c = this;
        return void 0 === n && (n = cc.Vec2.ZERO), void 0 === o && (o = this.node), new Promise(function(t) {
            var e = c.labelMap && c.labelMap.has(i) ? c.labelMap.get(i) : new cc.Node(i).addComponent(cc.Label);
            e.node.parent = o, e.node.setPosition(n), c.labelMap && !c.labelMap.has(i) && c.labelMap.set(i, e), 
            a && (e.string = a), t(e);
        });
    }, t.prototype.loadRichText = function(a, n, i, o) {
        var c = this;
        return void 0 === n && (n = cc.Vec2.ZERO), void 0 === o && (o = this.node), new Promise(function(t) {
            var e = c.richTextMap && c.richTextMap.has(i) ? c.richTextMap.get(i) : new cc.Node(i).addComponent(cc.RichText);
            e.node.parent = o, e.node.setPosition(n), c.richTextMap && !c.richTextMap.has(i) && c.richTextMap.set(i, e), 
            a && (e.string = a), t(e);
        });
    }, t.prototype.loadSkeleton = function(n, i, o, c) {
        var s = this;
        return void 0 === i && (i = cc.Vec2.ZERO), void 0 === o && (o = "default"), void 0 === c && (c = this.node), 
        new Promise(function(e, t) {
            var a = s.skeletonMap && s.skeletonMap.has(o) ? s.skeletonMap.get(o) : new cc.Node(o).addComponent(sp.Skeleton);
            a.node.parent = c, a.node.setPosition(i), n ? A.default.getInstance().loadRes({
                url: n,
                type: sp.SkeletonData
            }).then(function(t) {
                t instanceof sp.SkeletonData && a && (a.skeletonData = t, s.skeletonMap && !s.skeletonMap.has(o) && s.skeletonMap.set(o, a), 
                e(a));
            }).catch(function() {
                t(n);
            }) : (s.skeletonMap && !s.skeletonMap.has(o) && s.skeletonMap.set(o, a), e(a));
        });
    }, t.prototype.loadAnimation = function(t, n) {
        return new Promise(function(e, a) {
            A.default.getInstance().loadRes({
                url: t,
                type: cc.AnimationClip
            }).then(function(t) {
                n.addClip(t), e(n);
            }).catch(function(t) {
                a(t);
            });
        });
    }, t.prototype.loadBtn = function(t) {
        t ? (this.myButton.node.active = !0, cc.systemEvent.on(this.data.tag, this.callback, this), 
        this.myButton.init(this.data.tag, t, f.BtnBgType.YELLOW)) : (this.myButton.node.active = !1, 
        cc.systemEvent.off(this.data.tag, this.callback, this));
    }, t.prototype.loadBackBtn = function() {
        1 == g.GC.backType ? 1 < this.backBtns.length && A.default.getInstance().loadSpriteFrame({
            url: "image/ui/点击返回@2x",
            sprite: this.backBtns[1].getComponent(cc.Sprite)
        }) : 2 == g.GC.backType && 2 < this.backBtns.length && ("egg_get" == this.data.tag ? A.default.getInstance().loadSpriteFrame({
            url: "image/ui/放弃领取@2x",
            sprite: this.backBtns[2].getComponent(cc.Sprite)
        }) : A.default.getInstance().loadSpriteFrame({
            url: "image/ui/点击继续@2x",
            sprite: this.backBtns[2].getComponent(cc.Sprite)
        }));
    }, t.prototype.closePnl = function() {
        this.unscheduleAllCallbacks(), this.hidePnl(), M.default.getInstance().hideAllBanner();
    }, t.prototype.changeBackBtn = function(a) {
        -1 < a && a < this.backBtns.length && this.backBtns.forEach(function(t, e) {
            t && (t.node.active = e == a);
        });
    }, t.prototype.pushEvent = function(t) {
        _.default.getInstance().sentLog("点击" + this.viewname + "界面" + t + "按键");
    }, a([ R ], t.prototype, "viewname", void 0), a([ R ], t.prototype, "btnname", void 0), 
    a([ R(f.default) ], t.prototype, "myButton", void 0), a([ R(cc.Node) ], t.prototype, "mask", void 0), 
    a([ R(l.default) ], t.prototype, "myBanner", void 0), a([ R([ cc.Button ]) ], t.prototype, "backBtns", void 0), 
    a([ R(cc.Node) ], t.prototype, "backBtnLayout", void 0), a([ R(v.default) ], t.prototype, "scrollGames", void 0), 
    a([ R(I.default) ], t.prototype, "daoliang", void 0), a([ O ], t);
}(r.default);

n.default = T;